import pytest
from game import EMPTY_MARK, is_game_finished

finished_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, EMPTY_MARK]
list1 = [1, 2, 3, 4, 5, 6, 7, 9, 8, 10, 11, 12, 13, 14, 15, EMPTY_MARK]
list2 = [EMPTY_MARK, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]

@pytest.mark.parametrize('field, result', [
        (finished_list, True), 
        (list1,False),
        (list2,False)])
def test_is_game_finished(field,result):
    assert is_game_finished(field) == result
